@import "mixins";
@import "variables";

* {
  margin: 0;
  padding: 0;
}

.g-hd-new {
  position: relative;
  width: 100%;
  height: 100px;
  background-color: #fff;
  #transition(all .2s linear);

  .nav {
    background-color: @whiteColor;
    #transition(all .2s linear);

    //--logo开始
    .logo {
      .fl();
      margin: 10px 0;
      background: @activeColor;
    }

    .logo a {
      .clearFix();
      display: block;
    }

    .logo a img {
      .img-responsive();
      .center-block();
      height: 80px;
    }

   //--logo结束


   // 一级级联菜单开始
    .menu-box {
      display: flex;
      justify-content: end;
    }

    .menu-box .menu-list {
      display: flex;
      flex-wrap: nowrap;
      line-height: 100px;
    }
    .menu-box .menu-list .item-link {
      font-size: 16px;
      font-weight: 700;
    }
    .menu-box .menu-list .menu-item {
      margin-left: 60px;
      text-align: center;
    }

    .menu-subtitle {
      color: @activeColor!important;
      cursor: pointer;
      border-bottom: 2px solid @activeColor;
      &::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        height: 2px;
        width: 100%;
        background: @activeColor;
        transform: scale(0);
        transition: all 0.3s;
      }
    }

    .menu-box .menu-list .menu-item a {
      position: relative;
      color: #333;
    }
    .menu-box .menu-list .menu-item > a:before {
      content: "";
      position: absolute;
      left: 0;
      bottom: -10px;
      height: 2px;
      width: 100%;
      background: @activeColor;
      transform: scale(0);
      transition: all 0.3s;
    }
    .menu-box .menu-list .menu-item .first-menu .menu-Primaryselector a:hover{
      color: @activeColor;
      cursor: pointer;
      border-bottom: 2px solid @activeColor;
    }

    .menu-box .menu-list .menu-item:hover > a:before {
      transform: scale(1);
    }

    .menu-box .menu-list .menu-item:hover >a {
      cursor: pointer;
      color: @activeColor;
    }

    //  一级级联菜单结束

   //   二级级联菜单开始
    .menu-box .menu-list .menu-item .first-menu {
      display: none;
      position: absolute;
      top: 100px;
      left: 0;
      z-index: 999;
      width: 100%;
      padding: 15px 0;
      background: #fff;
      border-top: 1px solid @borderColor;
      box-shadow: 0 5px 5px rgba(0, 0, 0, .1);
    }

    .menu-box .menu-list .menu-item .first-menu .menu-Primaryselector {
      position: relative;
      margin: auto;
    }
    .menu-box .menu-list .menu-item .first-menu > .menu-Primaryselector > li > a {
      font-size: 16px;
      font-weight: 700;
    }
  }

  .menu-Primaryselector > li {
    width: 15%;
    line-height: 50px;
    border-right: 1px solid @borderColor;
  }

  .menu-Primaryselector > li > .secondary-menu-box {
    display: none;
  }

  .menu-Primaryselector > li > .secondary-menu-box {
    position: absolute;
    left: 19%;
    top: 0;
  }

  .menu-Primaryselector > li > .secondary-menu-box .secondary-menu {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    z-index: 1000;
  }

  .menu-Primaryselector > li > .secondary-menu-box .secondary-menu > li {
    width: 120px;
    line-height: 30px;
    margin-left: 30px;
  }

  .menu-Primaryselector > li > .secondary-menu-box .secondary-menu img {
    .img-responsive();
    .center-block();
  }

  .menu-Primaryselector > li > .secondary-menu-box .secondary-menu span {
    display: block;
    text-align: center;
    color: @baseColor;
    font-size: 14px;
    font-weight: 700;
  }

  .menu-Primaryselector > li > .secondary-menu-box .secondary-menu a:hover span {
    color: @activeColor;
  }

  .room-box{
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    z-index: 999;
    width: 100%;
    background: #fff;
    border-top: 1px solid @borderColor;
    box-shadow: 0 5px 5px rgba(0, 0, 0, .1);
  }
  .room-box .room-menu {
    display: flex;
    flex-wrap: wrap;
    padding-top: 30px;
  }
  .room-list{
    width: 230px;
    margin-right: 50px;
    text-align: center;
    line-height: 30px;
  }
  .room-list a{
    color: #333;
    font-weight: 600;
  }
  .room-list a:hover{
    color: @activeColor;
  }

  .room-list > span {
    line-height: normal;
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #333;

  }
  .room-list img {
    .img-responsive();
    .center-block();
  }
  .support{
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    z-index: 999;
    width: 100%;
    background: #fff;
    border-top: 1px solid @borderColor;
    box-shadow: 0 5px 5px rgba(0, 0, 0, .1);

  }
  .support .support-menu {
    display: flex;
    justify-content: center;
    padding: 30px;
  }
  .support_list{
    width: 230px;
    margin-right: 50px;
    text-align: center;
    line-height: 30px;
  }
  .support_list a{
    color: #333;
    font-weight: 600;
  }
  .support_list a:hover{
    color: @activeColor;
  }









  //  屏幕适配器开始
}


@media screen and (min-width: 768px) and (max-width: 991px ) {
  .g-hd-new .nav .menu-box .menu-list .menu-item {
    margin-left: 30px;
  }
}
@media screen and (min-width: 992px) and (max-width: 1119px ) {
  .g-hd-new .nav .menu-box .menu-list .menu-item {
    margin-left: 35px
  }
}
//  屏幕适配器结束



